<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf"%>
<script type="text/javascript" src="${ctx}/js/system/user/add.js">
	
</script>
<style type="text/css">
.col-sm-3 {
    position: relative;
    top: 8px;
	width: 15%;
	float: left;
	text-align: right;
}

.col-sm-9 {
	width: 32%;
	float: left;
	text-align: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		  action="${ctx}/homework/saveData.shtml">
		<section class="panel panel-default">
			<div class="panel-body">

				<input type="hidden" class="form-control" value="${data.id}"
					   name="homeWorkFormMap.id" id="id">

				<div class="form-group">
					<div class="col-sm-3">
						<label class="control-label">作业编号</label>
					</div>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							   name="homeWorkFormMap.ly_homework_code" id="ly_homework_code" value="${data.ly_homework_code}">

					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">工序号</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								   name="homeWorkFormMap.ly_process_code"
								   id="ly_process_code" value="${data.ly_process_code}">

						</div>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-3 control-label">设备</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							   name="homeWorkFormMap.ly_equipment"
							   id="ly_equipment" value="${data.ly_equipment}">
					</div>

					<div class="form-group">
						<label class="col-sm-3 control-label">工序</label>
						<div class="col-sm-9">
							<select class="form-control" name="homeWorkFormMap.ly_process_name" id="ly_process_name">
								<option value="003">下达</option>
							</select>
						</div>
					</div>
				</div>


				<div class="form-group">
					<label class="col-sm-3 control-label">产品</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							   name="homeWorkFormMap.ly_product" id="ly_product">
						<span class="input-group-btn">
							<button class="btn btn-info" id="workorder" type="button"
									style="height: 34px; position: relative; top: -34px; left: 150px;"
									onclick="getItemBom('ly_product','item_bom_name');">
								<span class="glyphicon glyphicon-search"></span>
							</button>
					</span>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">班定产额</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								   name="homeWorkFormMap.ly_num"
								   id="ly_num" value="${data.ly_num}">

						</div>
					</div>
				</div>

				<div class="line line-dashed line-lg pull-in"></div>
				<footer class="panel-footer text-right bg-light lter">
					<button type="submit" class="btn btn-success btn-s-xs">提交</button>
				</footer>

		</section>
	</form>

	<script type="text/javascript">
		onloadurl();
	</script>
	<script type="text/javascript"
		src="${ctx}/notebook/notebook_files/bootstrap-filestyle.min.js"></script>
</body>
</html>